/*
 * Created on 3-feb-2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package it.unibo.deis.lia.location;

/**
 * @author Carlo Giannelli
 *
 * LocationOss is a Location with an observable value (e.g., RSSI).
 */


public class LocationOss extends Location {

	private static final long serialVersionUID = 1L;
	private String oss;
	
	public LocationOss(String id){
		super(id);
	}
	public LocationOss(String id, String value){
		super(id);
		this.oss=value;
	}
	public double getValue(){
		return (new Double(oss)).doubleValue();
	}
	public String getStringValue(){
		return oss;
	}
	public String toString(){
		return "["+getId()+" "+oss+"]";
	}
}
